﻿using Domain.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;

namespace Web.Controllers
{
    [ApiVersion("1.0")]
    [Route("api/v{version:apiVersion}/[controller]")]
    [ApiController]
    public class AccountController : ControllerBase
    {
        private readonly UserManager<Account> userManager;

        private readonly SignInManager<Account> signInManager;

        //[HttpGet(Name = "Index")]
        //public IActionResult Get()
        //{
        //    return new JsonResult(User.Claims.Select(x => new { x.Type,x.Issuer }));
        //}
        [HttpGet]
        [ApiVersion("2.0")]
        [AllowAnonymous]
        public IActionResult GetAllow()
        {
            return new JsonResult("1212");
        }

    }
}
